<?php
namespace App\Services\SubmitForm;
use App\Services\SubmitForm\SubmitForm\SubmitFormLogic;
use App\Services\Manage\ManageIndex;
use App\Services\User\App;
/**
 * Class SubmitForm 表单提交服务
 * @package App\Services\SubmitForm
 */
class SubmitForm
{
    /*我的 - 意见建议*/
   /* public function suggestion(): array
    {
        $data = $this->issetReceiveData(['app_id'=>0, 'user_id'=>0,'user_info'=>[],'name'=>'','mobile'=>'','title'=>'','content'=>'']);
        return $this->stepRun($data, 'suggestion', '', $this->submitformValidate, $this->submitformLogic);
    }*/

    /*后台 - 获取意见建议列表*/
    public function getSuggestionList($data): array
    {
        $data = init_array($data, ['keywords'=>'']);
        return (new SubmitFormLogic())->getSuggestionList($data);
    }

    /*标记某表单已阅读*/
    public function remarkRead($data): array
    {
        $data = init_array($data, ['id'=>0]);
        ValidateSubmitForm::checkValidate($data, ['id',]);
        return (new SubmitFormLogic())->remarkRead($data);
    }




}
